﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace aier.dataaccess.model
{
    [XrmEntity("new_propaganda","new_propagandaid")]
    public partial class ScreenPropaganda:BaseModel
    {
        [XrmFieldMapping("ownerid", XrmAttributeType.EntityReference, true)]
        [XrmReferenceType("systemuser", default(string))]
        public System.Guid OwnerId { get; set; }

        [XrmFieldMapping("new_propagandaid", XrmAttributeType.EntityReference, true)]
        public System.Guid new_propagandaId { get; set; }


        [XrmFieldMapping("new_name", XrmAttributeType.String, true)]
        public string new_name { get; set; }

        [XrmFieldMapping("new_lead", XrmAttributeType.EntityReference, true)]
        [XrmReferenceType("systemuser", default(string))]
        public Nullable<System.Guid> new_lead { get; set; }

        [XrmFieldMapping("new_gender", XrmAttributeType.XrmOptionSetValue, true)]
        public Nullable<int> new_gender { get; set; }

        [XrmFieldMapping("new_age", XrmAttributeType.Int, true)]
        public Nullable<int> new_age { get; set; }

        [XrmFieldMapping("new_mobile", XrmAttributeType.String, true)]
        public string new_mobile { get; set; }

        [XrmFieldMapping("new_tel", XrmAttributeType.String, true)]
        public string new_tel { get; set; }

        [XrmFieldMapping("new_description", XrmAttributeType.String, true)]
        public string new_description { get; set; }

        //[XrmFieldMapping("new_note", XrmAttributeType.String, true)]
        //public string new_note { get; set; }

        //[XrmFieldMapping("new_reason", XrmAttributeType.String, true)]
        //public string new_reason { get; set; }

        [XrmFieldMapping("new_screen", XrmAttributeType.EntityReference, true)]
        [XrmReferenceType("new_screen", default(string))]
        public Nullable<System.Guid> new_screen { get; set; }

        //[XrmFieldMapping("new_preachid", XrmAttributeType.Int, true)]
        //public string new_preachid { get; set; }

        [XrmFieldMapping("new_contactresult", XrmAttributeType.XrmOptionSetValue, true)]
        public Nullable<int> new_contactresult { get; set; }

        [XrmFieldMapping("new_issee", XrmAttributeType.Boolean, true)]
        public Nullable<bool> new_issee { get; set; }

        [XrmFieldMapping("new_isorder", XrmAttributeType.Boolean, true)]
        public Nullable<bool> new_isorder { get; set; }

        [XrmFieldMapping("new_isfollowself", XrmAttributeType.XrmOptionSetValue, true)]
        public Nullable<int> new_isfollowself { get; set; }

        [XrmFieldMapping("new_followdoctor", XrmAttributeType.EntityReference, true)]
        [XrmReferenceType("systemuser", default(string))]
        public Nullable<System.Guid> new_followdoctor { get; set; }

        [XrmFieldMapping("new_countteardrop", XrmAttributeType.Int, true)]
        public Nullable<int> new_countteardrop { get; set; }

        [XrmFieldMapping("new_account", XrmAttributeType.EntityReference, true)]
        [XrmReferenceType("account", default(string))]
        public Nullable<System.Guid> new_account { get; set; }

        [XrmFieldMapping("new_healthinsuranceplace", XrmAttributeType.XrmOptionSetValue, true)]
        public Nullable<int> new_healthinsuranceplace { get; set; }

        [XrmFieldMapping("new_doctor", XrmAttributeType.EntityReference, true)]
        [XrmReferenceType("systemuser", default(string))]
        public Nullable<System.Guid> new_doctor { get; set; }

        //[XrmFieldMapping("new_meringflag", XrmAttributeType.Int, true)]
        //public Nullable<int> new_meringflag { get; set; }
    }
}
